import online_shopping_mall_goods_of_supply from '@/icons/online_shopping_mall_goods_of_supply.png'
import list_of_goods_available from '@/icons/list_of_goods_available.png'
import supplier_contract from '@/icons/supplier_contract.png'
import supplier_details_icon from '@/icons/supplier-details-icon.png'
import main_supplier_of_goods from '@/icons/main_supplier_of_goods.png'
import staff_stars from '@/icons/staff_stars.png'
import staff_assessment from '@/icons/staff_assessment.png'
import employee_attendance from '@/icons/employee_attendance.png'
import scheduling_type from '@/icons/scheduling_type.png'
import employee_details from '@/icons/employee_details.png'
import position_information from '@/icons/position_information.png'
import modification_of_contract_price from '@/icons/modification_of_contract_price.png'
import page_icon1 from '@/icons/page-icon1.png'
import page_icon2 from '@/icons/page-icon2.png'
import page_icon3 from '@/icons/page-icon3.png'
import page_icon4 from '@/icons/page-icon4.png'
import page_icon5 from '@/icons/page-icon5.png'
import page_icon6 from '@/icons/page-icon6.png'
import organization_replenishment_list from '@/icons/organization_replenishment_list.png'
import generate_sorting_order from '@/icons/generate_sorting_order.png'
import sorting_record from '@/icons/sorting_record.png'
import review_records from '@/icons/review_records.png'
import distribution_order from '@/icons/distribution_order.png'
import loading_and_distribution from '@/icons/loading_and_distribution.png'
import distribution_list from '@/icons/distribution_list.png'
import attribute_adjustment_sheet from '@/icons/attribute_adjustment_sheet.png'
import warehouse_receipt from '@/icons/warehouse_receipt.png'
import purchase_receipt from '@/icons/purchase_receipt.png'
import organization_details from '@/icons/organization_details.png'
import organization_staff from '@/icons/organization_staff.png'
import store_star from '@/icons/store_star.png'
import filing_list from '@/icons/filing_list.png'
import return_order from '@/icons/return_order.png'
import print_label from '@/icons/print_label.png'
import system_recommendation_form from '@/icons/system_recommendation_form.png'
import inventory_adjustment from '@/icons/inventory_adjustment.png'
import price_adjustment_sheet from '@/icons/price_adjustment_sheet.png'
import replenishment_note from '@/icons/replenishment_note.png'
import expiration_warning from '@/icons/expiration_warning.png'
import supplier_purchase_price_comparison from '@/icons/supplier_purchase_price_comparison.png'
import purchase_return from '@/icons/purchase_return.png'
import loss_report from '@/icons/loss_report.png'
import abnormal_icon1 from '@/icons/abnormal-icon1.png'
import abnormal_icon2 from '@/icons/abnormal-icon2.png'
import abnormal_icon3 from '@/icons/abnormal-icon3.png'
import cost_change_record from '@/icons/cost_change_record.png'

const gutter = 24
const span = 8
const template = {
  pathName: '',
  imageSrc: organization_replenishment_list,
  title: '',
  span: 6
} //初始模版：二级选项对象

const obj = {
  dividendSummary: {
    list: [[{
      ...template,
      pathName: 'statisticalAnalysisProfitList',
      title: '分润总表'
    }]],
    gutter
  },
  distributionAgentMerchant: {
    list: [[{
      ...template,
      pathName: 'distributionAgentMerchantDistributionStoreList',
      title: '分销商户列表'
    }, {
      ...template,
      pathName: 'distributionAgentMerchantDistributionModeList',
      title: '分销模式'
    }]],
    gutter
  },
  onlineShoppingMallGoods: {
    list: [[{
      ...template,
      pathName: 'basicArchivesOnlineMallProductsShopIndex',
      title: '店铺线上商品审核'
    }]],
    gutter
  },
  creditLimitManagement: {
    list: [[{
      ...template,
      pathName: 'marketingManagementReconciliationPreferentialList',
      title: '优惠汇总报表'
    }, {
      ...template,
      pathName: 'marketingManagementReconciliationCreditLimitManagementList',
      title: '机构额度'
    }, {
      ...template,
      pathName: 'marketingManagementReconciliationCreditLimitManagementLimitSetting',
      title: '机构额度设置'
    }]],
    gutter
  },
  purchase: {
    list: [{
      title: '仓库',
      list: [{
        ...template,
        pathName: 'purchaseManagementWarehouseAddPurchase',
        title: '给仓库采购',
        imageSrc: filing_list
      }, {
        ...template,
        pathName: 'purchaseManagementWarehousePurchase',
        title: '采购单'
      }, {
        ...template,
        pathName: '',
        title: '采购退货单',
        imageSrc: purchase_return
      }, {
        ...template,
        pathName: 'purchaseManagementPurchaseDifferenceList',
        title: '采购差异单',
        imageSrc: abnormal_icon3
      }]
    }, {
      title: '店铺',
      list: [{
        ...template,
        pathName: 'purchaseManagementStoreReplenishment',
        title: '给店铺补货',
        imageSrc: filing_list
      }]
    }, {
      title: '商品指定时间采购设置',
      list: [{
        ...template,
        pathName: 'purchaseManagementSpecifiedTimeAllowPurchaseGoodsList',
        title: '指定时间销售',
        imageSrc: expiration_warning
      }, {
        ...template,
        pathName: 'purchaseManagementSpecifiedTimeAddPurchaseQuantityList',
        title: '指定时间增量',
        imageSrc: expiration_warning
      }]
    }],
    gutter,
    span
  },
  purchasePrice: {
    list: [[{
      ...template,
      pathName: 'purchaseManagementSupplierPriceCompare',
      title: '供应商进价对比',
      imageSrc: supplier_purchase_price_comparison
    }]],
    gutter
  },
  jointPurchase: {
    list: [[{
      ...template,
      pathName: 'purchaseManagementJointPurchaseNoParticipation',
      title: '未参与的联合采购',
      imageSrc: loss_report
    }, {
      ...template,
      pathName: 'purchaseManagementJointPurchaseParticipation',
      title: '已参与的联合采购',
      imageSrc: purchase_receipt
    }, {
      ...template,
      pathName: 'purchaseManagementJointPurchaseMy',
      title: '我的联合采购'
    }]],
    gutter
  },
  increaseStockTasks: {
    list: [[{
      ...template,
      pathName: 'stockManagementBillPurchaseReceiptIndex',
      title: '无订单收货',
      imageSrc: purchase_receipt
    }, {
      ...template,
      pathName: 'stockManagementBillCommodityDepositIndex',
      title: '商品存放单',
      imageSrc: warehouse_receipt
    }]],
    gutter
  },
  accountsPayable: {
    list: [{
      title: '采购结算',
      list: [{
        ...template,
        pathName: 'financialAffairsPayablePurchaseSettlementSettlementOrderList',
        title: '采购结算单'
      }, {
        ...template,
        pathName: 'financialAffairsPayablePurchaseSettlementBusinessOrderList',
        title: '采购业务单据'
      }]
    }, {
      title: '其他',
      list: [{
        ...template,
        pathName: 'financialAffairsStoreUniteDataIndex',
        title: '供应商联营数据汇总'
      }, {
        ...template,
        pathName: 'financialAffairsPayableReplenishment',
        title: '应付供应商账款（店铺补货）'
      }]
    }],
    gutter,
    span
  },
  statisticalAnalysisStore: {
    list: [{
      title: '店铺盈亏',
      list: [{
        ...template,
        pathName: 'statisticalAnalysisStoreBreakEvenMonthList',
        title: '店铺盈亏平衡'
      }
      , {
        ...template,
        pathName: 'statisticalAnalysisStoreRevenueSummaryList',
        title: '店铺营收汇总'
      }
    ]
    }, {
      title: '店铺交易',
      list: [{
        ...template,
        pathName: 'statisticalAnalysisStoreTransactionRecordList',
        title: '店铺交易记录'
      }, {
        ...template,
        pathName: 'statisticalAnalysisStoreSalesOrderList',
        title: '店铺销售记录'
      }, {
        ...template,
        pathName: 'statisticalAnalysisStoreSalesOrderReturnList',
        title: '店铺销售退货记录'
      }]
    }, {
      title: '商品进销存',
      list: [{
        ...template,
        pathName: 'statisticalAnalysisStoreGoodsPurchaseSalesStockDayList',
        title: '商品进销存每日汇总'
      }, {
        ...template,
        pathName: 'statisticalAnalysisStoreGoodsStockChangeRecordList',
        title: '商品库存变动记录'
      }]
    }, {
      title: '营业分析',
      list: [{
        ...template,
        pathName: 'statisticalAnalysisStoreSalesInOneDay',
        title: '日清营业分析'
      }]
    }],
    gutter,
    span
  },
  deliveryTasks: {
    list: [{
      title: '机构补货单',
      list: [{
        ...template,
        pathName: 'deliveryTasksOrganizationReplenishmentBillList',
        title: '机构补货单',
        imageSrc: organization_replenishment_list
      }, {
        ...template,
        pathName: 'deliveryTasksOrganizationReplenishmentBillSortingList',
        title: '生成分拣单',
        imageSrc: generate_sorting_order
      }, {
        ...template,
        pathName: 'deliveryTasksOrganizationReplenishmentBillSortedList',
        title: '分拣记录',
        imageSrc: sorting_record
      }, {
        ...template,
        pathName: 'deliveryTasksOrganizationReplenishmentBillReviewList',
        title: '复核记录',
        imageSrc: review_records
      }, {
        ...template,
        pathName: 'deliveryTasksOrganizationReplenishmentBillAllocationList',
        title: '分配配送单',
        imageSrc: distribution_order
      }, {
        ...template,
        pathName: 'deliveryTasksOrganizationReplenishmentBillLoadingAndDeliveryList',
        title: '装车发货',
        imageSrc: loading_and_distribution
      }, {
        ...template,
        pathName: 'deliveryTasksOrganizationReplenishmentBillDeliveryList',
        title: '配送单',
        imageSrc: distribution_list
      }]
    }, {
      title: '异常单据',
      list: [{
        ...template,
        pathName: 'deliveryTasksAbnormalBillOutOfStockOrderIndex',
        title: '缺货商品单',
        imageSrc: abnormal_icon2
      }, {
        ...template,
        pathName: 'deliveryTasksAbnormalBillDeliveryDivergenceOrderIndex',
        title: '配送差异单',
        imageSrc: abnormal_icon1
      }]
      // }, {
      //   title: '拆整为零',
      //   list: [{
      //     ...template,
      //     pathName: 'deliveryTasksPieces',
      //     title: '拆整为零',
      //     imageSrc: page_icon2
      //   }]
    }, {
      title: '车辆线路管理',
      list: [{
        ...template,
        pathName: 'deliveryTasksCarManageManagement',
        title: '车辆管理',
        imageSrc: distribution_list
      }, {
        ...template,
        pathName: 'deliveryTasksDeliveryLineBillIndex',
        title: '线路规划单'
      }]
    }, {
      title: '线上订单',
      list: [{
        ...template,
        pathName: 'deliveryTasksOnlineOrderOrganizationReplenishmentBillIndex',
        title: '线上订单管理'
      }]
    }],
    gutter,
    span
  },
  stockManagementStocktake: {
    list: [[{
      ...template,
      pathName: 'stockManagementStocktakeTaskIndex',
      title: '盘点任务',
      permissionCode: '050301'
    }, {
      ...template,
      pathName: 'stockManagementStocktakeOrderIndex',
      title: '盘点单',
      permissionCode: '050302'
    }, {
      ...template,
      pathName: 'stockManagementStocktakeApplyIndex',
      title: '加盟店申请盘点',
      imageSrc: attribute_adjustment_sheet,
      permissionCode: '050303'
    }, {
      ...template,
      pathName: 'stockManagementStocktakeGroupTask',
      title: '盘点小组任务',
      imageSrc: organization_staff,
      permissionCode: '050304'
    }]],
    gutter,
    span
  },
  paySettlementStatistic: {
    list: [[{
      ...template,
      pathName: 'financialAffairsPaySettlementStatisticNotReceived',
      title: '未到账金额',
      imageSrc: cost_change_record
    }, {
      ...template,
      pathName: 'financialAffairsPaySettlementStatisticBySortDayList',
      title: '已到账类目汇总',
      imageSrc: modification_of_contract_price
    }]],
    gutter
  },
  stockManagementOrder: {
    list: [{
      title: '机构单据',
      list: [{
        ...template,
        pathName: '',
        title: '建档单',
        imageSrc: filing_list
      }, {
        ...template,
        pathName: '',
        title: '补货单',
        imageSrc: replenishment_note
      }, {
        ...template,
        pathName: '',
        title: '验收入库单',
        imageSrc: warehouse_receipt
      }, {
        ...template,
        pathName: '',
        title: '报损单',
        imageSrc: loss_report
      }, {
        ...template,
        pathName: 'stockManagementBillGoodsReturnList',
        title: '退货单',
        imageSrc: return_order
      }, {
        ...template,
        pathName: 'stockManagementBillGoodsReturnDifferenceList',
        title: '退货差异单',
        imageSrc: return_order
      }, {
        ...template,
        pathName: 'stockManagementBillStockAdjustmentOrderIndex',
        title: '库存调整单',
        imageSrc: inventory_adjustment
      }, {
        ...template,
        pathName: '',
        title: '属性调整单',
        imageSrc: attribute_adjustment_sheet
      }, {
        ...template,
        pathName: '',
        title: '调价单',
        imageSrc: price_adjustment_sheet
      }]
    }, {
      title: '其他',
      list: [{
        ...template,
        pathName: '',
        title: '打印标签',
        imageSrc: print_label
      }, {
        ...template,
        pathName: '',
        title: '系统推荐单',
        imageSrc: system_recommendation_form
      }, {
        ...template,
        pathName: '',
        title: '成本变动记录',
        imageSrc: cost_change_record
      }]
    }],
    gutter,
    span
  },
  organizationManagement: {
    list: [[{
      ...template,
      pathName: 'basicArchivesOrganizationList',
      title: '机构明细',
      imageSrc: organization_details
    }, {
      ...template,
      pathName: '',
      title: '店铺星级',
      imageSrc: store_star
    }, {
      ...template,
      pathName: '',
      title: '机构员工',
      imageSrc: organization_staff
    }]],
    gutter
  },
  staffManagement: {
    list: [[{
      ...template,
      pathName: 'basicArchivesStaffJob',
      title: '岗位信息',
      imageSrc: position_information
    }, {
      ...template,
      pathName: 'basicArchivesStaffList',
      title: '员工明细',
      imageSrc: employee_details
    }, {
      ...template,
      pathName: '',
      title: '到期预警',
      imageSrc: expiration_warning
    }, {
      ...template,
      pathName: '',
      title: '排班类型',
      imageSrc: scheduling_type
    }, {
      ...template,
      pathName: '',
      title: '员工考勤',
      imageSrc: employee_attendance
    }, {
      ...template,
      pathName: '',
      title: '员工考核',
      imageSrc: staff_assessment
    }, {
      ...template,
      pathName: '',
      title: '员工星级',
      imageSrc: staff_stars
    }]],
    gutter
  },
  processGoods: {
    list: [[{
      ...template,
      pathName: 'basicArchivesProcessGoodsRelatedList',
      title: '加工商品关联',
      imageSrc: page_icon2
    }]],
    gutter
  },
  supplier: {
    list: [[{
      ...template,
      pathName: 'purchaseManagementSupplierList',
      title: '供应商明细',
      imageSrc: supplier_details_icon
    }, {
      ...template,
      pathName: '',
      title: '供应商合同',
      imageSrc: supplier_contract
    }, {
      ...template,
      pathName: 'purchaseManagementSupplierThePriceAdjustmentSheetSuppliedToMeList',
      title: '供应给我的价格审核',
      imageSrc: supplier_contract
    }, {
      ...template,
      pathName: 'purchaseManagementSupplierGoodsList',
      title: '供应商申请商品审核',
      imageSrc: list_of_goods_available
    }, {
      ...template,
      pathName: 'basicArchivesOnlineMallProductsSupplierIndex',
      title: '一件代发审核',
      imageSrc: list_of_goods_available
    }, {
      ...template,
      pathName: '',
      title: '设置商品的主供应商',
      imageSrc: main_supplier_of_goods
    }]],
    gutter
  },
  supplyObject: {
    list: [[{
      ...template,
      pathName: 'basicArchivesMyClientCustomerDetailsList',
      title: '批发客户',
      imageSrc: page_icon1
    }, {
      ...template,
      pathName: 'basicArchivesMyClientGroupingIndex',
      title: '客户星级设置',
      imageSrc: system_recommendation_form
    }, {
      ...template,
      pathName: '',
      title: '供应合同',
      imageSrc: supplier_contract
    }, {
      ...template,
      pathName: 'basicArchivesProductInformationISupply',
      title: '供应商品申请',
      imageSrc: page_icon3
    }, {
      ...template,
      pathName: '',
      title: '商品合同价修改申请',
      imageSrc: modification_of_contract_price
    }]],
    gutter
  },
  supplyPrice: {
    list: [[{
      ...template,
      pathName: 'basicArchivesPriceManagementPriceGeneratorIndex',
      title: '价格生成工具',
      imageSrc: page_icon4
    }, {
      ...template,
      pathName: 'basicArchivesPriceManagementCommoditySupplyPriceStandardIndex',
      title: '商品供应价格标准',
      imageSrc: page_icon5
    }, {
      ...template,
      pathName: 'basicArchivesPriceManagementPriceAdjustmentRecordIndex',
      title: '调价记录',
      imageSrc: page_icon6
    }, {
      ...template,
      pathName: 'basicArchivesGrossProfitLevelIndex',
      title: '商品毛利率等级',
      imageSrc: cost_change_record
    }]],
    gutter
  },
  supplierOnlineGoods: {
    list: [[{
      ...template,
      pathName: 'basicArchivesOnlineMallProductsMineIndex',
      title: '一件代发申请',
      imageSrc: online_shopping_mall_goods_of_supply
    }]],
    gutter
  },
  marketingActivity: {
    list: [[{
      ...template,
      pathName: 'marketingManagementActivityGoodsIndex',
      title: '首页活动栏目',
      imageSrc: page_icon4,
      permissionCode: '040401'
    }, {
      ...template,
      pathName: 'marketingManagementActivityGrabGoodsIndex',
      title: '秒杀',
      imageSrc: page_icon4,
      permissionCode: '040402'
    }, {
      ...template,
      pathName: 'marketingManagementActivityDiscountIndex',
      title: '折扣',
      imageSrc: page_icon4,
      permissionCode: '040403'
    }, {
      ...template,
      pathName: 'marketingManagementActivityMarkupBuyIndex',
      title: '加价购',
      imageSrc: page_icon4,
      permissionCode: '040404'
    }, {
      ...template,
      pathName: 'marketingManagementActivityCouponIndex',
      title: '优惠券',
      imageSrc: page_icon4,
      permissionCode: '040405'
    }, {
      ...template,
      pathName: 'marketingManagementActivityTurntableIndex',
      title: '幸运大转盘',
      imageSrc: page_icon4,
      permissionCode: '040406'
    }]],
    gutter
  },
  pageCustomConsumer: {
    list: [[{
      ...template,
      pathName: 'pageCustomAdMiniProgramConfig',
      title: '首页配置',
      imageSrc: page_icon4
    }, {
      ...template,
      pathName: 'pageCustomAdBanner',
      title: '横幅广告管理',
      imageSrc: page_icon4
    }, {
      ...template,
      pathName: 'marketingManagementActivityDiscountIndex',
      title: '二级页面配置',
      imageSrc: page_icon4
    }]],
    gutter
  },
  pageCustomStore: {
    list: [[{
      ...template,
      pathName: 'pageCustomStoreAdBanner',
      title: '横幅广告管理',
      imageSrc: page_icon4
    }]],
    gutter
  },
  purchaseSalesInventory: {
    list: [[{
      ...template,
      pathName: 'financialAffairsInventoryList',
      title: '仓库汇总进销存',
      imageSrc: modification_of_contract_price
    }, {
      ...template,
      pathName: 'financialAffairsInventoryList',
      title: '店铺汇总进销存',
      imageSrc: modification_of_contract_price
    }]],
    gutter
  },
  receivable: {
    list: [{
      title: '供应对账与结算',
      list: [{
        ...template,
        pathName: 'financialAffairsReceivablePurchaseSettlementSettlementOrderList',
        title: '供应结算单'
      }, {
        ...template,
        pathName: 'financialAffairsReceivablePurchaseSettlementBusinessOrderList',
        title: '供应业务单据'
      }]
    }, {
      title: '其他',
      list: [{
        ...template,
        pathName: 'financialAffairsReceivableSalesOrderOnCreditList',
        title: '店铺赊账管理',
        imageSrc: modification_of_contract_price
      }, {
        ...template,
        pathName: 'financialAffairsStoreCashPaymentList',
        title: '现金上缴',
        imageSrc: modification_of_contract_price
      }]
    }],
    gutter,
    span
  },
  financialAffairsStore: {
    list: [[{
      ...template,
      pathName: 'financialAffairsStoreCostList',
      title: '店铺固定费用设置',
      imageSrc: modification_of_contract_price
    }, {
      ...template,
      pathName: 'financialAffairsStorePickupPointCostList',
      title: '提货点佣金',
      imageSrc: modification_of_contract_price
    }]],
    gutter
  }
}
export default obj
